package com.qingfeng.medical.biz.message.domain.ro;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 回复表
 *
 * @author 清风学Java
 * @date 2023-05-13 17:50:14
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "回复表")
public class ReplyRo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主评论Id")
    private Long id;

    @ApiModelProperty(value = "评论用户Id")
    private Long userId;

    @ApiModelProperty(value = "评论Id")
    private Long commentId;

    @ApiModelProperty(value = "被评论者id")
    private Long toId;

    @ApiModelProperty(value = "点赞人数")
    private Integer likeNum;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    /**
     * 用户信息封装在这里
     */
    @ApiModelProperty(value = "用户头像")
    private String headImgUrl;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "名字")
    private String name;

    @ApiModelProperty(value = "账号（手机/邮箱）")
    private String account;

    @ApiModelProperty(value = "被评论者的名字")
    private String toName;
}
